<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Company')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-company" class="form-control" name="row[company]" type="text" value="{$row.company|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Social_credit_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-social_credit_code" class="form-control" name="row[social_credit_code]" type="text" value="{$row.social_credit_code|htmlentities}" readonly>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Advertising_account')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-advertising_account" class="form-control" rows="5" name="row[advertising_account]" cols="50">{$row.advertising_account|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fb_page')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-fb_page" class="form-control" rows="5" name="row[fb_page]" cols="50">{$row.fb_page|htmlentities}</textarea>
        </div>
    </div>
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Advertising_account')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<dl class="fieldlist" data-template="advertising_accounttpl" data-name="row[advertising_account]">-->
                <!--<dd>-->
                    <!--<ins>可追加{:__('advertising_account')}</ins>-->
                <!--</dd>-->
                <!--<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>-->
                <!--&lt;!&ndash;请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏&ndash;&gt;-->
                <!--<textarea name="row[advertising_account]" style="display: none;" class="form-control" cols="30" rows="5">{$row.advertising_account}</textarea>-->
            <!--</dl>-->
            <!--<script id="advertising_accounttpl" type="text/html">-->
                <!--<dd class="form-inline">-->
                    <!--<ins style="max-width: 600px;width: 600px;">-->
                        <!--<input style="max-width: 600px;width: 600px;" data-rule="required" type="text" name="<%=name%>[<%=index%>][advertising_account]" class="form-control" value="<%=row.advertising_account%>" placeholder="添加{:__('advertising_account')}" />-->
                    <!--</ins>-->
                    <!--&lt;!&ndash;下面的两个按钮务必保留&ndash;&gt;-->
                    <!--<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>-->
                    <!--<span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>-->
                <!--</dd>-->
            <!--</script>-->
        <!--</div>-->
    <!--</div>-->
    <!--<div class="form-group">-->
        <!--<label class="control-label col-xs-12 col-sm-2">{:__('Fb_page')}:</label>-->
        <!--<div class="col-xs-12 col-sm-8">-->
            <!--<dl class="fieldlist" data-template="fb_pagetpl" data-name="row[fb_page]">-->
                <!--<dd>-->
                    <!--<ins>可追加{:__('Fb_page')}</ins>-->
                <!--</dd>-->
                <!--<dd><a href="javascript:;" class="btn btn-sm btn-success btn-append"><i class="fa fa-plus"></i> {:__('Append')}</a></dd>-->
                <!--&lt;!&ndash;请注意 dd和textarea间不能存在其它任何元素，实际开发中textarea应该添加个hidden进行隐藏&ndash;&gt;-->
                <!--<textarea name="row[fb_page]" style="display: none;" class="form-control" cols="30" rows="10">{$row.fb_page}</textarea>-->
            <!--</dl>-->
            <!--<script id="fb_pagetpl" type="text/html">-->
                <!--<dd class="form-inline">-->
                    <!--<ins style="max-width: 600px;width: 600px;">-->
                        <!--<input style="max-width: 600px;width: 600px;" data-rule="required" type="text" name="<%=name%>[<%=index%>][fb_page]" class="form-control" value="<%=row.fb_page%>" placeholder="添加{:__('Fb_page')}" />-->
                    <!--</ins>-->
                    <!--&lt;!&ndash;下面的两个按钮务必保留&ndash;&gt;-->
                    <!--<span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>-->
                    <!--<span class="btn btn-sm btn-primary btn-dragsort"><i class="fa fa-arrows"></i></span>-->
                <!--</dd>-->
            <!--</script>-->
        <!--</div>-->
    <!--</div>-->
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Binding_bm')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-binding_bm" class="form-control" name="row[binding_bm]" type="text" value="{$row.binding_bm|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Attribution')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input placeholder="如果不填则是待分配状态" id="c-attribution" data-field="nickname" data-source="auth/admin/index" class="form-control selectpage" data-params='{"custom[status]":"normal"}' name="row[attribution]" type="text" value="{$row.attribution|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Domain')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-domain" class="form-control" name="row[domain]" type="text" value="{$row.domain|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Business_premises')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-business_premises" class="form-control" name="row[business_premises]" type="text" value="{$row.business_premises|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Zip_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zip_code" class="form-control" name="row[zip_code]" type="text" value="{$row.zip_code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Email')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-email" class="form-control" name="row[email]" type="text" value="{$row.email|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-pic" class="control-label col-xs-12 col-sm-2">{:__('Pic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-pic" class="form-control" size="35" name="row[pic]" type="text" value="{$row.pic}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-pic" class="btn btn-danger faupload" data-input-id="c-pic" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-pic"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-pic" class="btn btn-primary fachoose" data-input-id="c-pic" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-pic"></ul>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Pic')}下载链接:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-pictext" class="form-control" name="row[pictext]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Account_note')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-account_note" class="form-control" name="row[account_note]" type="text" value="{$row.account_note|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="$row.status"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
